package com.hs.service.impl;

import com.hs.entity.CompanyInfo;
import com.hs.mapper.CompanyInfoMapper;
import com.hs.service.CompanyInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CompanyInfoServiceImpl implements CompanyInfoService {
    @Autowired
    private CompanyInfoMapper companyInfoMapper;
    @Override
    public int addCompanyInfo(CompanyInfo companyInfo) {
        return companyInfoMapper.addCompanyInfo(companyInfo);
    }

    @Override
    public int updateCompanyInfo(CompanyInfo companyInfo) {
        return companyInfoMapper.updateCompanyInfo(companyInfo);
    }

    @Override
    public int deleteCompanyInfo(int id) {
        return companyInfoMapper.deleteCompanyInfo(id);
    }

    @Override
    public CompanyInfo getCompanyInfo(int id) {
        return companyInfoMapper.getCompanyInfoById(id);
    }
}
